# # print(my_car.wheels)
# # my_car.drive()
# # my_car.stop()
#
#
# # class PersonIndo:
# #     __weight = 55
# #     def __info(self):
# #         print('我的体重是55kg')
#
#
# <<<<<<< HEAD
#  # class  PersonInfo:
#  #      __weight = 55
#  #      def __info(self):
#  #          print(f'我的体重是 {self.__weight}kg')
#  #      def get_weight(self):
#  #          print(f'我的体重是{self.__weight}kg')
#  #          self.__info()
#
#
#
#  # my_class = MyClass()
#  # print(my_class.name)
#  # my_class.print_name()
#
#  # test = Test()
#  # test.use_classment()
#  # Test.use_classment()
#
#
# #  class Apple:
# #      count = 0
# #      @classmethod
# #      def add_two(cls):
# #          cls.count = 2
# #
# # print(Apple.count)
# # Apple.add_two()
# # print(Apple.count)
#
# # 类定义顶格，无缩进
# class Apple:
#     # 类属性缩进4个空格
#     count = 0
#     # 类方法装饰器和方法定义都缩进4个空格
#     @classmethod
#     def add_two(cls):
#         # 方法内部缩进8个空格（再嵌套一层）
#         cls.count = 2
#
# # 外部调用代码顶格，无缩进
# print(Apple.count)    # 输出 0
# Apple.add_two()
# print(Apple.count)    # 输出 2
# =======
#  class  PersonInfo:
#       __weight = 55
#       def __info(self):
#           print(f'我的体重是 {self.__weight}kg')
#       def get_weight(self):
#           print(f'我的体重是{self.__weight}kg')
#           self.__info()
# >>>>>>> origin/master


# class Person:
#     def __init__(self, name, sex):
#         self.name = name
#         self.sex = sex
#     def introduce(self):
#         print(f'姓名： {self.name}')
#         print(f'性别： {self.sex}')
#
# person_one = Person('小张',  '女')
# person_one.introduce()
#
# person_two = Person('小张', '男')
# person_two.introduce()




#  @classmethod
#     def 类方法名 （cls, 参数1, 参数2,...):
#         方法体
# class Test:
#     @classmethod
#     def use_classmet(cls):
#     print("我是类方法"）
# test = Test()
# test.use_classmet()
# Test.use_classmet


